﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class UserControls_FeedBackControl : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void ButtonSubmit_Click(object sender, EventArgs e)
    {
        String subject = TextBoxSubject.Text;
        String content = TextBoxContent.Text;
        String firstname = TextBoxFirstName.Text;
        String lastname = TextBoxLastName.Text;
        String email = TextBoxEmail.Text;

        DataAccess.sendFeedback(subject, content, firstname, lastname, email);

        LabelResult.Text += "Your message send successfully.!";
    }
}